package dao

import "time"

type ApiDoc struct {
	ID          uint `gorm:"primary_key;auto_increment;not null" json:"id"`
	Name        string
	AppId       uint
	ModuleId    uint
	Path        string
	Header      interface{}
	Body        interface{}
	Params      interface{}
	Method      string `gorm:"method"`
	ContentType string `gorm:"content_type"`
	Response    string
	CreateTime  time.Time `gorm:"create_time" json:"createTime"`
	UpdateTime  time.Time `gorm:"update_time" json:"updateTime"`
}

func (c ApiDoc) TableName() string {
	return "api_doc"
}
